<?php
/**
 * Yaf 入口文件
 * 
 * @author  Laruence
 * @date    2011-05-13 15:00
 * @version $Id$ 
 */

if (phpversion() >= "5.3") {
	define("APPLICATION_PATH", __DIR__);
} else {
	define("APPLICATION_PATH", dirname(__FILE__));
}

error_reporting(0 ^ E_ERROR);

try {
$app = new Yaf_Application(APPLICATION_PATH . "/conf/application.ini");
$app->bootstrap()->run();	
}
catch (Exception $e){
	echo $e->getMessage();
}
